package com.utils.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * @TableName customer
 */
@TableName(value ="customer")
@Data
public class Customer implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @ApiModelProperty("客户名字")
    private String name;

    /**
     * 
     */
    @ApiModelProperty("客户手机号")
    private String phone;

    /**
     * 
     */
    @ApiModelProperty("客户邮箱")
    private String email;

    /**
     * 
     */
    @ApiModelProperty("客户年纪")
    private Integer grade;

    /**
     * 
     */
    @ApiModelProperty("客户性别")
    private String gender;

    /**
     * 
     */
    @TableField(exist = false)
    private Integer userId;

    @TableField(exist = false)
    private List<User> users;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}